
#!/bin/sh

rm -rf ~/found*

while read LINE
do
    if [ -f $LINE ]; then
        echo $LINE >> ~/found
    else
        echo $LINE >> ~/foundNot
    fi
    echo $LINE
done